#include <iostream>
#include <cmath>
#include <iomanip>
#define PI 3.14159
using namespace std;

int main()
{
    float r, h;
    scanf("%f %f", &r, &h);
    float circle_c = 2 * PI * r;
    float circle_s = PI * r * r;
    float ball_s = 4 * PI * r * r;
    float ball_v = 4. / 3. * PI * r * r * r;
    float cylinder_v = PI * r * r * h;
    float cone_v = 1. / 3. * PI * r * r * h;

    cout << fixed << setprecision(2);
    cout << "circle_c= " << circle_c << endl;
    cout << "circle_s= " << circle_s << endl;
    cout << "ball_s= " << ball_s << endl;
    cout << "ball_v= " << ball_v << endl;
    cout << "cylinder_v= " << cylinder_v << endl;
    cout << "cone_v= " << cone_v << endl;

    return 0;
}